<div class="menu"> 
  <%= link_to 'List', :action => 'list' %> 
  <%= link_to 'show', :action => 'show', :id => @item.id %> 
</div> 
<%= render :partial => 'flash' %> 
<%= error_messages_for :item %> 
<%= error_messages_for :picture %> 
<div class="edititem"> 
  <% form_tag({:action => 'update', :id => @item.id}, :multipart => true) do %> 
  <p><label for="item_created_at"><%= h 'created_at' %></label> 
    <%= select_datetime @item.created_at %> 
  </p> 
  <%= render :partial => 'form' %> 
  <p><%= h 'Delete' %></p> 
  <% @item.pictures.each do |pic| %> 
  <%= check_box :pic, pic.id, :onclick => "new Effect.Pulsate($(pic#{pic.id}));" %>
  <%= image_tag(url_for(:action => :image, :id => pic.id), :size => '90x60', 
  :id => "pic#{pic.id}") %> 
  <% end %> 
  </p> 
  <%= submit_tag 'Save changes' %> 
  <% end %> 
</div>